<!DOCTYPE html>
<html ng-app="app" lang="en">
    <head>
        <meta charset="UTF-8">
        <title ng-bind="title"></title>
        <link rel="stylesheet" href="../../style/css/bootstrap.css">
        <link rel="stylesheet" href="../../style/css/matrix-style.css">
        <link rel="stylesheet" href="../loader/loader.css">
        <link rel="stylesheet" href="../checkbox/checkbox.css">
        <script src="../../../node_modules/angular/angular.js"></script>
        <script src="../../a.ui.js"></script>
        <script src="../common/store.js"></script>
        <script src="../loader/loader.js"></script>
        <script src="radio.js"></script>
        <script src="radio-group.js"></script>
        <script>
            // bootstrap app
            var app = angular.module('app', ['a.ui']);
            app.run(function ($rootScope) {
                $rootScope.title = 'RadioGroup';
                $rootScope.checked = true;
                $rootScope.professions = [
                    {name: '程序员', value: 1},
                    {name: '测试', value: 2},
                    {name: '客服', value: 3},
                    {name: '销售', value: 4},
                    {name: '财务', value: 5}
                ];
                $rootScope.profession = 1;
                $rootScope.xxx = 2;
            });
        </script>
    </head>
    <body>
        <div class="container">
            <h1 class="text-center" ng-bind="title"></h1>

            <a-radio-group ng-model="profession" data="professions" name="profession" display-field="name" value-field="value"></a-radio-group>

            <hr>
            Choose: <span ng-bind="profession"></span>
            <div class="ui divider hidden"></div>
            <input type="text" ng-model="param.orgCode">

            <a-radio-group ng-model="xxx" api="./radio-group.demo.json" param="param" name="xxx" display-field="name" value-field="value"></a-radio-group>

            <div class="ui divider hidden"></div>
            Choose: <span ng-bind="xxx"></span>
        </div>
    </body>
</html>